@extends('home.personal.userlayout')
@section('title','我的团队')
@section('style')
    <link rel="stylesheet" href="{{ asset('/home/css/team.css')}}?version=2"/>
@endsection
@section('content')
    <div class="banner">
        <div class="left" style="background: {{empty($id)?'#999999':'#CCCCCC'}}"><a href="{{ url('team') }}">一级（{{ $data['count'] }}人）</a></div>
        <div class="left" style="background: {{$id==1?'#999999':'#CCCCCC'}}"><a href="{{ url('team/1') }}">二级（{{ $data['count1'] }}人）</a></div>
        <div class="left" style="background: {{$id==2?'#999999':'#CCCCCC'}}"><a href="{{ url('team/2') }}">三级（{{ $data['count2'] }}人）</a></div>
    </div>
    <div class="content">
        <ul>
            @foreach($data['list'] as $k => $v)
            <li>
                <a href="" data-id="{{$v['id']}}">
                    <img src="{{ asset($v['img']) }}" alt="">
                    <p class="name">{{$v['name']}}</p>
                </a>
            </li>
            @endforeach
        </ul>
    </div>




@endsection

@section('script')
    <script>
        var url = "{{ url('/personal') }}";
        $('.head .left').attr('href',url);
    </script>
@endsection